using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

internal class Scope
{
    private readonly IEnumerable<ParameterExpression> variables;

	public bool HasVariable(string name)
	{
		return variables.Any(v => v.Name == name);
	}

    public Scope(IEnumerable<ParameterExpression> vars)
    {
        variables = vars;
    }
}